package kr.saeildamil.androidstudy_second.fragment.common;

import kr.saeildamil.androidstudy_second.R;
import kr.saeildamil.androidstudy_second.fragment.FragmentLifeCycle;
import android.app.Activity;
import android.app.Fragment;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class FragmentEx extends Fragment {

	@Override
	public void onAttach(Activity activity) {
		Log.d(FragmentLifeCycle.TAG, "Fragment - onAttach()");
		super.onAttach(activity);
	}

	@Override
	public void onCreate(Bundle savedInstanceState) {
		Log.d(FragmentLifeCycle.TAG, "Fragment - onCreate()");
		super.onCreate(savedInstanceState);
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		Log.d(FragmentLifeCycle.TAG, "Fragment - onCreateView()");
		View root = inflater.inflate(R.layout.ch20_fragmentex, null);
		return root;
	}

	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		Log.d(FragmentLifeCycle.TAG, "Fragment - onActivityCreated()");
		super.onActivityCreated(savedInstanceState);
	}

	@Override
	public void onStart() {
		Log.d(FragmentLifeCycle.TAG, "Fragment - onStart()");
		super.onStart();
	}

	@Override
	public void onResume() {
		Log.d(FragmentLifeCycle.TAG, "Fragment - onResume()");
		super.onResume();
	}

	@Override
	public void onPause() {
		Log.d(FragmentLifeCycle.TAG, "Fragment - onPause()");
		super.onPause();
	}

	@Override
	public void onDestroyView() {
		Log.d(FragmentLifeCycle.TAG, "Fragment - onDestroyView()");
		super.onDestroyView();
	}

	@Override
	public void onDetach() {
		Log.d(FragmentLifeCycle.TAG, "Fragment - onDetach()");
		super.onDetach();
	}

	@Override
	public void onStop() {
		Log.d(FragmentLifeCycle.TAG, "Fragment - onStop()");
		super.onStop();
	}

	@Override
	public void onDestroy() {
		Log.d(FragmentLifeCycle.TAG, "Fragment - onDestroy()");
		super.onDestroy();
	}
}
